converter/app/base64encoder.ts

16 lines
290 B
TypeScript
Raw Normal View History

import {Converter} from './converter';
export class Base64Encoder implements Converter {
getDisplayname():string {
return "Encode Base 64";
}
getId():string {
return "base64encode";
}
convert(input:string):string {
return btoa(input);
}
}