'`google-drive` pattern of generated Google Drive folder ID
$ gdrive list
Id Name Type Size Created
1tqeNnGiZqy4EMj8p6d_LG7Js0aD9ao37 9b69f5168c0aa4bbe9cd5f1546169cf3 dir 2019-09-16 14:16:18
1ule-XdDb1JrvAEwqwN80JLs7LGuLGUxC subFile bin 5.0 B 2019-09-16 14:16:25
1ndFenMDcQbJFpQb3ScpaumdlITzf6Tc3 subFile~ bin 2019-09-16 14:16:24
1iTo4NUBe01tWODnFwT9SOQuVARd9nV85 example dir 2019-09-16 14:16:23
1FDxjPDWLnP89miUTVjJ_0WMwdDDy_o5_ README.md bin 96.0 B 2019-09-16 14:16:22
146N7bhF2Ev5kvJwprpedSu9EWkYPz1ic run.sh bin 197.0 B 2019-09-16 14:16:21
Id of each file is generated as 33 characters and contains non-alphabetic characters. My goal is to store a string value in a smart-contract as a type of bytes32.
=> Is it possible to compress Google Id value into 32 characters using base decoding?
I realize that all Id of listed each file starts with 1. So could I assume this pattern on the creation of the Id, where all of them starts with 1 and could I discard the 1 at the beginning.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
