Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
322 B

  1. const safeBuffer = require('safe-buffer').Buffer
  2. function decodeBase64 (base64) {
  3. return safeBuffer.from(base64, 'base64').toString('utf8')
  4. }
  5. function encodeBase64 (string) {
  6. return safeBuffer.from(string, 'utf8').toString('base64')
  7. }
  8. module.exports = {
  9. decodeBase64: decodeBase64,
  10. encodeBase64: encodeBase64
  11. }