mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 20:06:08 +01:00
server-ts: services/encryption/*.js -> ts
This commit is contained in:
@@ -41,7 +41,7 @@ function hashedBlobId(content: string) {
|
||||
return kindaBase62Hash.substr(0, 20);
|
||||
}
|
||||
|
||||
function toBase64(plainText: string) {
|
||||
function toBase64(plainText: string | Buffer) {
|
||||
return Buffer.from(plainText).toString('base64');
|
||||
}
|
||||
|
||||
@@ -311,7 +311,7 @@ function isString(x: any) {
|
||||
return Object.prototype.toString.call(x) === "[object String]";
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
export = {
|
||||
randomSecureToken,
|
||||
randomString,
|
||||
md5,
|
||||
|
||||
Reference in New Issue
Block a user