-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from securesecrets/mint/experimental-restructure
Mint | Experimental Restructure
- Loading branch information
Showing
10 changed files
with
246 additions
and
582 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
53711a844c7bfee6caa387aed70bf497 | ||
5837fae4e377ec630732b06ce018adba |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
import string | ||
import random | ||
import base64 | ||
import json | ||
|
||
|
||
def gen_label(length): | ||
# With combination of lower and upper case | ||
return ''.join(random.choice(string.ascii_letters) for i in range(length)) | ||
|
||
|
||
def to_base64(dict): | ||
dict_str = json.dumps(dict).encode('ascii') | ||
encoded_str = base64.b64encode(dict_str) | ||
return encoded_str.decode() |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.