delete notes & sync to firebase
This commit is contained in:
@@ -13,3 +13,7 @@ export const decrypt = (encryptedMessage: string, key: string): string => {
|
||||
throw new Error("Message doesn't have valid encryption")
|
||||
return decryptedMessage.substring(encryptionPrefix.length)
|
||||
}
|
||||
|
||||
export const encrypt = (unencryptedMessage: string, key: string): string => {
|
||||
return CryptoJS.AES.encrypt(encryptionPrefix + unencryptedMessage, key).toString()
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@ Let's get started!`,
|
||||
{
|
||||
title: 'brackets',
|
||||
content: `If you type square brackets around text a link is created automatically. Like magic!`,
|
||||
isRoot: false
|
||||
},
|
||||
].map((note) => ({
|
||||
id: shortid.generate(),
|
||||
|
||||
Reference in New Issue
Block a user