We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e519335 commit 2ecbad2Copy full SHA for 2ecbad2
1 file changed
src/index.ts
@@ -121,7 +121,7 @@ export class Cipher {
121
* Calculate MAC
122
* @param text Input text
123
*/
124
- public mac(text: string) {
+ public mac(text: string): string {
125
const splitted = text.match(/.{1,10}/g)?.map(i => i.padEnd(10, "0"))!;
126
let block = "0000000000";
127
for(let i of splitted) block = this.decrypt(`${i}${block}`, {mode: 2});
0 commit comments