0.1.8 • Published 11 months ago

@3-/b64 v0.1.8

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
11 months ago

@3-/b64

test/main.coffee :

#!/usr/bin/env coffee

> @3-/b64/b64d.js
  @3-/b64/b64e.js
  @3-/u8/u8eq.js

random = =>
  length = Math.floor(Math.random() * 16)
  li = new Uint8Array(length)
  crypto.getRandomValues(li)
  li

max = 999

while --max
  b = random()
  b64 = b64e(b).replaceAll('=','')
  if not u8eq(b,b64d(b64))
    console.log b
    break

if max == 0
  console.log 'test success'

output :

test success

About This Project

This project is an open-source component of i18n.site ⋅ Internationalization Solution.

关于本项目

本项目为 i18n.site ⋅ 国际化解决方案 的开源组件。

0.1.8

11 months ago

0.1.7

11 months ago

0.1.4

1 year ago

0.1.6

11 months ago

0.1.5

11 months ago

0.1.2

2 years ago

0.1.3

2 years ago

0.1.1

2 years ago