You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Get the encryption key from the environment variable or use a default valueconstencryptionKey=process.env.DOCUMENT_ENCRYPTION_KEY||"";// Create a Fernet cipher using the encryption keyconstfernetSecret=newSecret(encryptionKey);// Decryption functionfunctiondecrypt(encryptedText: string): string{consttoken=newToken({secret: fernetSecret,token: encryptedText,ttl: 0,});returntoken.decode();}
Could we decrypt messages that are encrypted with https://cryptography.io/en/latest/fernet/?
The text was updated successfully, but these errors were encountered: