Displaying 10 results from an estimated 10 matches for "b64decode".
2017 Aug 30
1
non-standard base64 functions in tinc 1.1
...entional?
Below is a diff to make tinc's base64 functions match what everyone
else does. This will break existing key files, though, which is
unfortunate.
- todd
diff --git a/src/utils.c b/src/utils.c
index fadfd05..43d4840 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -75,14 +75,14 @@ int b64decode(const char *src, void *dst, int length) {
uint32_t triplet = 0;
unsigned char *udst = (unsigned char *)dst;
- for(i = 0; i < length && src[i]; i++) {
- triplet |= base64_decode[src[i] & 0xff] << (6 * (i & 3));
+ for(i = 0; i < length && src[i] && s...
2024 Jan 23
2
How to determine which cipher was used to encrypt OpenSSH private keys
....argv[1:]:
d64 = open(f, "rt").read()
o = d64.find(BEGIN)
if o == -1:
raise ValueError("{} missing begin marker".format(f))
d64 = d64[o + len(BEGIN):]
o = d64.find(END)
if o == -1:
raise ValueError("{} missing end marker".format(f))
d64 = d64[:o]
d = base64.b64decode(d64)
if d[:len(BLOBSTART)] != BLOBSTART:
raise ValueError("{} missing blob preamble".format(f))
d = d[len(BLOBSTART):]
l = (d[0] << 24) | (d[1] << 16) | (d[2] << 8) | d[3]
alg = d[4: 4+l].decode("utf-8")
print("{}: {}".format(f, alg))
2024 Jan 22
1
How to determine which cipher was used to encrypt OpenSSH private keys
Hi,
looking through the key specification, you can see that its the second
field in the key file:
https://github.com/openssh/openssh-portable/blob/master/PROTOCOL.key#L11
It looks like there is no convenient way to get this information with
openssh cli, but given that the file format is just base64 encoded,
you can read it out with something like this:
$ cat /tmp/rsa | head -n -1 | tail -n +2 |
2015 Jun 30
3
how is the sha fingerprint generated?
% cat ext_rsa.pub| sed -r 's/.*(AAAA[^ ]+).*/\1/' | sha256sum
~/.ssh swlap1
d4bf8b06f2d9d9af7a11583a5367205ed310a84f0dee68d062e2ddca1e85c3ff -
% ssh-keygen -lf ext_rsa.pub
~/.ssh swlap1
8192 SHA256:FgrfxmdjTM/j4wwRa7nVdPSUaJdqHYMJtJ6aciPl9ug swilson at swlap1 (RSA)
Why do those differ and how would i generate the equivalent (mainly
just curious)? I've also tried base64 and a
2019 Mar 28
2
Encoding problem with the unicodePwd stored into sam.ldb
hello,
I use Samba 4.9.5 on Linux Debian 9.
I want to extract users' passwords. A lot of passwords are ok, some are not.
Example with a password returning an error :
# ldbsearch -H /var/lib/samba/private/sam.ldb '(primaryGroupID=513)'
userPrincipalName unicodePwd
....
# record 494
dn: CN=XXX,CN=Users,DC=YYY,DC=ZZZ,DC=fr
unicodePwd:: wXQvJaSkn0gvg1POsY9Icw==
uidNumber: 5110
2004 Dec 09
1
Exim4 authentication patch
...ovecot.h */
diff -urdpNx build-Linux-i386 -x Local exim-4.43.vanilla/src/auths/Makefile exim-4.43/src/auths/Makefile
--- exim-4.43.vanilla/src/auths/Makefile 2004-10-05 12:32:08.000000000 +0400
+++ exim-4.43/src/auths/Makefile 2004-12-09 15:46:44.000000000 +0300
@@ -7,7 +7,7 @@
OBJ = b64encode.o b64decode.o call_pam.o call_pwcheck.o call_radius.o \
xtextencode.o xtextdecode.o get_data.o get_no64_data.o md5.o \
- cram_md5.o cyrus_sasl.o plaintext.o pwcheck.o sha1.o auth-spa.o spa.o
+ cram_md5.o cyrus_sasl.o plaintext.o pwcheck.o sha1.o auth-spa.o spa.o dovecot.o
auths.a: $...
2019 Nov 25
7
[PATCH nbdkit v2 0/7] Implement nbdkit API v2 for Python plugins.
v3 was here:
https://www.redhat.com/archives/libguestfs/2019-November/msg00209.html
In v4:
- Rebase on top of current master. Includes various fixes and
updates required because of Nir's patches that went into master.
- Fix api_version() -> API_VERSION in patch 2 noted previously on the
mailing list.
Rich.
2019 Nov 23
8
[PATCH nbdkit v3 0/7] Implement nbdkit API v2 for Python plugins.
v2 was here:
https://www.redhat.com/archives/libguestfs/2019-November/msg00163.html
I pushed patch 1 (with spelling fix), patch 4 and patch 5 since those
were previously ACKed on the list.
Differences in v3:
- Add error checking to PyModule_AddIntConstant.
- Use API_VERSION constant instead of function.
- Add max API version supported to --dump-plugin output.
- Print API_VERSION selected by
2016 Nov 14
0
FreeBSD Quarterly Status Report - Third Quarter 2016
...re preopening the file descriptors may not be suitable. Several
possible solutions for this are in discussion.
Recently Capsicumized utilities include:
* bspatch
* cmp
* ident
* primes
* tee
* tr
* write
Additional Capsicum changes are in review:
* b64decode, b64encode, uudecode, uuencode
* brandelf
* dma-mbox-create
* elf2aout
* file
* head
* hexdump
* iconv
* ident
* jot
* ktrdump
* lam
* last
* ministat
* praudit
* strings
An additional syscall (getdtablesize) and additio...
2016 Nov 14
0
FreeBSD Quarterly Status Report - Third Quarter 2016
...re preopening the file descriptors may not be suitable. Several
possible solutions for this are in discussion.
Recently Capsicumized utilities include:
* bspatch
* cmp
* ident
* primes
* tee
* tr
* write
Additional Capsicum changes are in review:
* b64decode, b64encode, uudecode, uuencode
* brandelf
* dma-mbox-create
* elf2aout
* file
* head
* hexdump
* iconv
* ident
* jot
* ktrdump
* lam
* last
* ministat
* praudit
* strings
An additional syscall (getdtablesize) and additio...