hunk.code_window: VERCEL_REDIRECT_URI=http://localhost:4200/auth/login
   VERCEL_BASE_URL=https://api.vercel.com
   FF_IS_TOPIC_NOTIFICATION_ENABLED=true
   STORE_NOTIFICATION_CONTENT=true
hunk.labels: keep keep keep add keep keep
hunk.after_edit: FF_IS_DISTRIBUTED_LOCK_LOGGING_ENABLED=false
  
hunk.file_path: apps/api/src/.example.env
hunk.type: add
file: import { decrypt, encrypt } from './cipher';
  
  describe('Encrypt secret', function () {
    it('should encrypt a credential', async function () {
      const password = '123';
      const encrypted = encrypt(password);
  
      expect(encrypted).not.toEqual(password);
      expect(encrypted.length).toEqual(65);
    });
  
    it('should decrypt a credential', async function () {
      const password = '123';
      const encrypted = encrypt(password);
      const decrypted = decrypt(encrypted);
  
      expect(decrypted).toEqual(password);
    });
  });
  