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) => { ...@@ -19,10 +19,7 @@ server.on('message', (msg, rinfo) => {
} }
const username = packet.attributes['User-Name']; const username = packet.attributes['User-Name'];
const password = packet.attributes['User-Password'];
// Decrypt the password
const encryptedPassword = packet.attributes['User-Password'];
const password = radius.decrypt({ packet: packet, secret: RADIUS_SECRET, attribute: encryptedPassword });
console.log(`Username: ${username}, Password: ${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