At Inpher, we believe that privacy and security are foundational to the future of computing and have built enterprise products to make this vision a reality. We are a small team of veteran founders, world-renowned cryptographers and proven software engineers. We are headquartered in New York City, with satellite offices in San Francisco and Lausanne, Switzerland, and have raised $14M in funding.
Apply at https://www.inpher.io/careers
Or email to me directly at $user@inpher.io, where each ascii character of $user can be obtained by solving for x and converting to base-128,
x = 145767 mod 611939, x = 109572 mod 598463
WolframAlpha says ChineseRemainder[{145767, 109572}, {611939, 598463}] is 243085550
So as a golang newbie, and someone who's interested in efficient representation of strings, I tried this:
package main
import (
"bytes"
"encoding/binary"
"fmt"
)
import "go.chromium.org/luci/common/data/base128"
func main() {
var num1 uint64 = 243085550
buf := new(bytes.Buffer)
err := binary.Write(buf, binary.LittleEndian, num1)
if err != nil {
fmt.Println("binary.Write failed on num1:", err)
}
string1 := base128.EncodeToString(buf.Bytes())
fmt.Printf("% s\n", string1)
}
Output is
wL?p?????and of course, wLp@inpher.io bounced back.
So any feedback would appreciated in the interest of learning.
I also tried this:
package main
import (
"fmt"
"ekyu.moe/leb128"
)
func main() {
fmt.Printf("%x\n", leb128.AppendUleb128(nil, 243085550))
}