test.ts 307 B

123456789101112
  1. import { expect } from 'chai';
  2. import { Encrypt, Decrypt } from '../src/AES/index';
  3. describe('Demo Test', () => {
  4. it('just a test', () => {
  5. const encString = Encrypt('Word');
  6. console.log(encString);
  7. console.log(Decrypt(encString));
  8. expect(Decrypt(encString)).to.equal('Word');
  9. });
  10. });