1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2026-05-01 09:05:27 +00:00
Files
go-chasquid-smtp/internal/userdb/userdb.proto
Alberto Bertogli 953d380424 make: Auto-format Python files, and update existing
This patch adds extends `make fmt` to auto-format Python files using
`black`, and also runs it on the existing files.
2026-04-06 19:31:58 +01:00

33 lines
443 B
Protocol Buffer

syntax = "proto3";
package userdb;
option go_package = "blitiri.com.ar/go/chasquid/internal/userdb";
message ProtoDB {
map<string, Password> users = 1;
}
message Password {
oneof scheme {
Scrypt scrypt = 2;
Plain plain = 3;
Denied denied = 4;
}
}
message Scrypt {
uint64 logN = 1;
int32 r = 2;
int32 p = 3;
int32 keyLen = 4;
bytes salt = 5;
bytes encrypted = 6;
}
message Plain {
bytes password = 1;
}
message Denied {}