Commit eead6b45 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 0ec12962
Pipeline #164 canceled with stages
......@@ -19,10 +19,7 @@ server.on('message', (msg, rinfo) => {
}
const username = packet.attributes['User-Name'];
// Decrypt the password
const encryptedPassword = packet.attributes['User-Password'];
const password = radius.decrypt({ packet: packet, secret: RADIUS_SECRET, attribute: encryptedPassword });
const password = packet.attributes['User-Password'];
console.log(`Username: ${username}, Password: ${password}`);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment